package com.hnevc.caoliuye;

import java.util.Scanner;

public class Homework {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入圆柱体的半径：");
        double i = sc.nextDouble();
        System.out.println("请输入圆柱体的高：");
        double y = sc.nextDouble();
        double PI = 3.14;
        double cemianji = 3.14 *i*2*y;//侧面积=3.14*半径*2*高

        double dimianji = 3.14*i*i; //底面积=3.14*半径*半径

        double biaomianji = cemianji + dimianji*2; //侧面积+两个底面积

        System.out.println("圆柱体的表面积为：" +biaomianji);


    }
}
